package NGUYENHOANG.OOP;

public class Tringle {
	//1. Datafield
	double side01;
	double side02;
	double side03;

	public Tringle(){
		side01=0;
		side02=0;
		side03=0;
	}
	
	//3. Constructor
	public Tringle( double Side01, double Side02, double Side03){
		this.side01 = Side01;
		this.side02 = Side02;
		this.side03 = Side03;
	}
	
	public double getSide02() {
		return side02;
	}

	public void setSide02(double side02) {
		this.side02 = side02;
	}

	public double getSide03() {
		return side03;
	}

	public void setSide03(double side03) {
		this.side03 = side03;
	}

	public double getSide01(){
		return 0;
	}
	public void setSide01(double side01){
		
	}
	public double Area(){
		double p=(side01+side02+side03)/2;
		return Math.sqrt(p*(p-side01)* (p-side02)*(p-side03));
	}
}
